﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Sinacor.Tools.Web.ConstantesErro
{
    public partial class frmMain : BasePage 
    {
        protected override void Page_Load(object sender, EventArgs e)
        {
            try
            {
                base.Page_Load(sender, e);
                if (!IsPostBack)
                {
                    this.carregar(this.Menu);
                    MenuItem sair = new MenuItem("Sair", "Sair");
                    sair.NavigateUrl = "javascript:sair()";
                    this.Menu.Items.Add(sair);
                    this.btnSair.Style.Add("display", "none");
                }
            }
            catch (Exception ex)
            {
                apresentarMensagem(ex.Message);
            }
        }

        protected override void preencherGrid()
        {
            throw new NotImplementedException();
        }

        protected override void preencherGrid(string sortExpression)
        {
            throw new NotImplementedException();
        }

        protected void btnSair_Click(object sender, EventArgs e)
        {
            Session["user"] = null;
            Server.Transfer("frmLogin.aspx");
        }
    }
}
